//手机号中间四位替换为*           
export function subPhone(value){
    let start = value.slice(0, 3);
    let end = value.slice(-4);
    return `${start}****${end}`;
}

//截取名字的姓
export function subName(val){
    return val.substr(0,1);
}